import FetchHelper from "../../helper/fetch-helper";


export default class XytjApi {
    static async list(params) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/indexCounty/list`, {
            ...params
        });
        return resp;
    }
    static async update(params) {
        const resp = await FetchHelper.putJson(`/admin-api/ybyj/indexCounty`, {
            ...params
        });
        return resp;
    }
    static async add(params) {
        const resp = await FetchHelper.postJson(`/admin-api/ybyj/indexCounty`, {
            ...params
        });
        return resp;
    }
    static async del(id) {
        const resp = await FetchHelper.deleteJson(`/admin-api/ybyj/indexCounty/${id}`);
        return resp;
    }
}